
from rest_framework import serializers
from . import models

class BacteriaSerializer(serializers.ModelSerializer):
    
    class Meta:
      model = models.BacteriaModel
      fields = '__all__'


class DownloadListSerializer(serializers.Serializer):
    id = serializers.IntegerField()
    name = serializers.CharField()
    path = serializers.CharField()
    tax_id = serializers.CharField(required=False)
    show_name = serializers.CharField()

class PhageSerializer(serializers.ModelSerializer):
    
    class Meta:
      model = models.PhageModel
      fields = '__all__'


class ProPhageSerializer(serializers.ModelSerializer):
    
    class Meta:
      model = models.ProPhageModel
      fields = '__all__'

class AllDownloadSerializer(serializers.ModelSerializer):
    
    class Meta:
      model = models.AllDownloadModel
      fields = '__all__'